import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

import com.hyh.remote.MyRemote;

public class Test {

	public static void main(String[] args) {
		try {
			MyRemote myRemote = (MyRemote) Naming.lookup("rmi://127.0.0.3/gumballMachineMonitor");
			myRemote.report();
		} catch (MalformedURLException | RemoteException | NotBoundException e) {
			e.printStackTrace();
		}
	}

}
